@extends('admin.editor.layout.layout')
@section('content')
<div class="panel panel-default">
    <div class="panel-heading" style="padding-bottom:0px">
        审核文章列表
    </div>
    <!-- /.panel-heading -->
    <div class="panel-body">
        <div class="table-responsive">
            @if(session('success'))
            <div class="alert alert-success">
                {{session('success')}}
            </div>    
            @endif
            <table class="table table-striped table-bordered table-hover">
                <thead>
                    <tr>
                        <th  style="text-align:center;">ID</th>
                        <th  style="text-align:center;">评论书籍</th>
                        <th  style="text-align:center;">评论文章标题</th>
                        <th  style="text-align:center;">评论人</th> 
                        <th  style="text-align:center;">评论内容</th>
                        <th  style="text-align:center;">操作</th>
                    </tr>
                </thead>
                <tbody>
                @foreach($comment as $k=>$v)
                    <tr style="text-align:center;">
                        <td>{{$v->id}}</td>
                        <td>{{$v->b_name}}</td>
                        <td>{{$v->title}}</td>
                        <td>{{$v->name}}</td>
                        <td>{{$v->com_content}}</td>
                        <td>
                        <a href="{{ url('/admin/ecomment/delete',['id'=>$v->id]) }}">删除</a>|<a href="{{url('/admin/ecomment/restore',['id'=>$v->id])}}">恢复</a>
                        </td>
                    </tr>
                @endforeach    
                </tbody>
            </table>
        </div>
       
        <!-- /.table-responsive -->
    </div>
    <!-- /.panel-body -->
</div>

@endsection